/* 
 * File:   IR.cpp
 * Author: Dylan
 * 
 * Created on 20 juni 2012, 12:16
 */

#include "IR.h"
#include "armboard.h"

IR::IR() {


}

int IR::getState() {
    armboard::input_pin & IRsensor = armboard::chip::pin_1_24;
    IRsensor.direction_set_input();
    return !IRsensor.get();
}




